<!--[* $Id: postcalendar_block_view_day.htm 638 2010-06-30 22:14:17Z craigh $ *]-->
<!--[if !$hideTodaysEvents]-->
<!--[ pc_pagejs_init ]-->
<div class="postcalendar_block_view_day">
<!--[ if $SHOW_TITLE eq 1 ]-->
    <h2 class='postcalendar_block_innertitle'><!--[gt text="Today's events" domain="module_postcalendar"]--></h2>
<!--[ /if ]-->
<!--[assign var="eventtotal" value=0]-->
<!--[assign var="eventcount" value=0]-->
    <ul class="pc_blocklist">
        <li class="pc_blockdate">
            <!--[ $TODAY_DATE|pc_date_format ]-->
        </li>
        <!--[ foreach name=eventloop key=id item=event from=$todaysEvents ]-->
            <!--[ assign var="eventtotal" value=$eventtotal+1 ]-->
            <!--[ if $eventcount < $DISPLAY_LIMIT ]-->
                <!--[ assign var="eventcount" value=$eventcount+1 ]-->
                <!--[ if $event.alldayevent != true ]-->
                    <!--[ assign var="timestamp" value=$event.startTime]-->
                <!--[ else ]-->
                    <!--[ assign var="timestamp" value="" ]-->
                <!--[ /if ]-->
                <li class="pc_blockevent">
                    <!--[ pc_popup bgcolor=$event.catcolor caption=$event.title text=$event.hometext|pnvarprepfordisplay assign="javascript"]-->
                    <!--[gt text='private event' assign='p_txt' domain='module_postcalendar']-->
                    <!--[if $event.privateicon]--><!--[pnimg src='locked.png' modname='core' set='icons/extrasmall' title=$p_txt alt=$p_txt]--><!--[/if]-->
                    <!--[ pc_url full=true class="eventlink" action="detail" eid=$event.eid date=$date javascript=$javascript display="$timestamp `$event.title`"|strip_tags ]-->
                    <!--[ if $event.alldayevent != true ]-->&nbsp;(<!--[gt text='until' domain="module_postcalendar"]--> <!--[ $event.endTime ]-->)<!--[ /if ]-->
                    <!--[ if $event.commentcount gt 0]-->
                        <!--[gt text='%s comment left' plural='%s comments left.' count=$event.commentcount tag1=$event.commentcount domain="module_postcalendar" assign="title"]-->
                        <a href="<!--[pnmodurl modname='PostCalendar' func='view' viewtype='details' eid=$event.eid ]-->#comments" title='<!--[$title]-->'>
                        <!--[gt text='Comment' assign='alt' domain='module_postcalendar']-->                        
                        <!--[pnimg modname=core src=comment.gif set=icons/extrasmall alt=$alt title=$title]--></a>
                    <!--[/if]-->
                </li>
            <!--[ /if ]-->
        <!--[ foreachelse ]-->
                <!--[ assign var="eventtotal" value="0" ]-->
                    <li class="pc_blockevent"><!--[gt text='No events scheduled.' domain="module_postcalendar"]--></li>
        <!--[ /foreach ]-->
    </ul>
<!--[ if ($eventtotal > $DISPLAY_LIMIT) ]-->
  <a href="<!--[ pc_url action=day eid=$event.eid date=$TODAY_DATE ]-->"><!--[ $eventtotal ]-->&nbsp<!--[ $EVENTS_TOTAL_LINK ]--></a>
<!--[ /if ]-->
</div>
<!--[/if]-->